package com.cash.loan.modular.cash.transfer;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @author Administrator
 * @Date 2018-08-01 16:46
 */
public class ChannelDto {

    private Long id;

    @NotBlank(message = "市场名称不能为空")
    private String channelName;

    @NotBlank(message = "渠道号不能为空")
    private String channelCode;

    @NotBlank(message = "版本号不能为空")
    private String appVersion;

    @Min(value = 0,message = "类型值错误")
    @Max(value = 1,message = "类型值错误")
    private Long uiType;

    public ChannelDto() {
    }

    public ChannelDto(Long id,String channelName, String channelCode, String appVersion, Long uiType) {
        this.channelName = channelName;
        this.channelCode = channelCode;
        this.appVersion = appVersion;
        this.uiType = uiType;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public Long getUiType() {
        return uiType;
    }

    public void setUiType(Long uiType) {
        this.uiType = uiType;
    }

    @Override
    public String toString() {
        return "ChannelDto{" +
                "id=" + id +
                ", channelName='" + channelName + '\'' +
                ", channelCode='" + channelCode + '\'' +
                ", appVersion='" + appVersion + '\'' +
                ", uiType=" + uiType +
                '}';
    }
}
